package com.demo2;

/**
 * Created by Administrator on 2017/3/25.
 */
public class XunHuan12 {
    public static void main(String[] args) {
        System.out.println("九九乘法表");
        System.out.print("     ");
        for (int i = 1; i <= 9; i++)
            System.out.print(i + "    ");
        System.out.println();
        for (int i = 1; i <= 9; i++) {
            System.out.print(i + "    ");
            for (int j = 1; j <= 9; j++)
                if (j <= i)
                    System.out.print(i * j + "    ");
            System.out.println();
        }
    }

}
